package com.test04;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Objects;
import java.util.Scanner;

/**
 * @author cjx
 * @create 2024/06/17
 * @description
 */
public class TestMath {
    public static void main(String[] args) {
        BigDecimal bd1 = new BigDecimal("0.35");
        BigDecimal bd2 = new BigDecimal("0.25");
        System.out.println(bd1.subtract(bd2));
        System.out.println(bd1.add(bd2));
        System.out.println(bd1.multiply(bd2));

        BigInteger b1 = new BigInteger("16");
        BigInteger b2 = new BigInteger("16");
        System.out.println(Objects.equals(b1, b2));
    }
}
